package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.*;

/**
 * @author ：zfr
 * @date ：2021/4/27 16:34
 */
public class UserSkinVolumeRewardData extends DataObject {
    private long userId;
    private int volumeId;
    private List<Integer> getRewardIndexList;
    private Date getRewardTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(int volumeId) {
        this.volumeId = volumeId;
    }

    public List<Integer> getGetRewardIndexList() {
        return getRewardIndexList;
    }

    public void setGetRewardIndexList(List<Integer> getRewardIndexList) {
        this.getRewardIndexList = getRewardIndexList;
    }

    public void addGetRewardIndex(int index) {
        this.getRewardIndexList.add(index);
        setUpdateOption();
    }



    public Date getGetRewardTime() {
        return getRewardTime;
    }

    public void setGetRewardTime(Date getRewardTime) {
        if (this.getRewardTime != getRewardTime) {
            this.getRewardTime = getRewardTime;
            setUpdateOption();
        }
    }
}
